package com.yuyou.fn.platform.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 第三方登录
 *
 */
@TableName(value = "oauth")
public class Oauth implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<Oauth> createExample(){
		return new Example<Oauth>(Oauth.class);
	}

	/**  */
	@TableId(value = "oauth_id")
	private Long oauthId;

	/**  */
	@TableField(value = "user_id")
	private Long userId;

	/** openid */
	@TableField(value = "open_id")
	private String openId;

	/** 用户昵称 */
	private String nickname;

	/** 头像地址 */
	@TableField(value = "avatar_url")
	private String avatarUrl;

	/** 1:wx_pub 2:wx_app  */
	@TableField(value = "which_platform")
	private Integer whichPlatform;

	/**  */
	@TableField(value = "create_time")
	private Date createTime;

	/**  */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 1:cutomer 2:teacher */
	private Integer role ;

	public Long getOauthId() {
		return this.oauthId;
	}

	public void setOauthId(Long oauthId) {
		this.oauthId = oauthId;
	}

	public Long getUserId() {
		return this.userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getOpenId() {
		return this.openId;
	}

	public void setOpenId(String openId) {
		this.openId = openId;
	}

	public String getNickname() {
		return this.nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getAvatarUrl() {
		return this.avatarUrl;
	}

	public void setAvatarUrl(String avatarUrl) {
		this.avatarUrl = avatarUrl;
	}

	public Integer getWhichPlatform() {
		return this.whichPlatform;
	}

	public void setWhichPlatform(Integer whichPlatform) {
		this.whichPlatform = whichPlatform;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}
}
